<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>条形码打印 - <?php echo $this->_var['site_name']; ?></title>
<script type="text/javascript" src="<?php echo $this->_var['site_url']; ?>/includes/libraries/javascript/jquery.js" charset="utf-8"></script>
<link rel="shortcut icon" href="<?php echo $this->_var['site_url']; ?>/favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<style type="text/css" media="print"> .NOPRINT{display:none;} </style>  
<style type="text/css">
body,table,td,p{font-size:12px;border:0;padding:0; margin:0;}
.content {margin:0 auto;width:420px; overflow:hidden;}
.NOPRINT {line-height:160%}
</style>
</head>
<body>
<div align="center" style="padding:5px;" class="NOPRINT">
<OBJECT id=WebBrowser classid=CLSID:8856F961-340A-11D0-A96B-00C04FD705A2 height=0 width=0 VIEWASTEXT></OBJECT>   
  <input type=button value="直接打印" onclick="javascript:window.print();" class="NOPRINT">&nbsp;&nbsp;
  <?php if ($this->_var['select_list']['print'] == 'fy'): ?>分页打印模式<?php else: ?>合并打印<?php endif; ?>&nbsp;-&nbsp;<?php if ($this->_var['select_list']['number'] == 'two'): ?>打印双份<?php else: ?>打印单份<?php endif; ?>
</div>
  <?php $_from = $this->_var['data_info']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }; $this->push_vars('', 'info');$this->_foreach['v'] = array('total' => count($_from), 'iteration' => 0);
if ($this->_foreach['v']['total'] > 0):
    foreach ($_from AS $this->_var['info']):
        $this->_foreach['v']['iteration']++;
?>
  <div style="padding:5px 0; text-align:center;"><img src="/data/barcode/test.php?codebar=BCGcode128&text=<?php echo $this->_var['info']; ?>&BarWidth=2&Height=25"></div>
  <?php if ($this->_var['select_list']['number'] == 'two'): ?><div style="padding:5px 0; text-align:center;"><img src="/data/barcode/test.php?codebar=BCGcode128&text=<?php echo $this->_var['info']; ?>&BarWidth=2&Height=25"></div><?php endif; ?>
  <?php if (! ($this->_foreach['v']['iteration'] == $this->_foreach['v']['total'])): ?><?php if ($this->_var['select_list']['print'] == 'fy'): ?><p style='page-break-after:always'/></p><?php endif; ?><?php endif; ?>
  <?php endforeach; else: ?>
  <div style="width:100%; text-align:center; font-size:18px; color:#F00; line-height:250%">没有找到相应的记录信息</div>
  <?php endif; unset($_from); ?><?php $this->pop_vars();; ?>
  
<div class="content NOPRINT" style="margin-top:10px;color:#666;overflow:hidden">
  浏览器阻止此站点以不安全的方式使用ActiveX控件的解决方法。<br />
  1、打开IE选工具/Internet选项/安全 -> 自定义级别 <br />
  2、ActiveX控件自动提示 (选择启用) <br />
  3、对没有标记为安全的ActiveX控件进行初始化并执行脚本 (选择启用或者提示 )<br />
  4、下载未签名的ActiveX控件 (选择 启用)<br /> 
  5、运行ActiveX控件和插件 (选择启用或者提示)
  </div>

</body>
</html>